gtk4.git
5 years agoFix the lpr print backend build (redundant-decls)
Martin Blanchard [Sun, 14 Jun 2020 14:13:37 +0000 (16:13 +0200)]
Fix the lpr print backend build (redundant-decls)

Class and instance _init() functions are already declared by
G_DEFINE_DYNAMIC_TYPE ().

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 13 Jun 2020 20:19:00 +0000 (20:19 +0000)]
Update Basque translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 13 Jun 2020 19:40:17 +0000 (19:40 +0000)]
Update Basque translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 13 Jun 2020 16:17:49 +0000 (16:17 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

widget-factory: Make the print dialog more functional

See merge request GNOME/gtk!2083

5 years agowidget-factory: Make the print dialog more functional
Matthias Clasen [Sat, 13 Jun 2020 12:59:21 +0000 (08:59 -0400)]
widget-factory: Make the print dialog more functional

Allow opening the papersize dialog.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 13 Jun 2020 11:45:35 +0000 (11:45 +0000)]
Update Ukrainian translation

5 years agoUpdate POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 13 Jun 2020 10:48:27 +0000 (12:48 +0200)]
Update POTFILES.in and POTFILES.skip

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 12 Jun 2020 21:53:48 +0000 (21:53 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

paperdialog: Drop the private struct

See merge request GNOME/gtk!2082

5 years agopaperdialog: Drop the private struct
Matthias Clasen [Fri, 12 Jun 2020 16:52:47 +0000 (12:52 -0400)]
paperdialog: Drop the private struct

Not needed here.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 12 Jun 2020 16:39:46 +0000 (16:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2080

5 years agoMerge branch 'fix-custom-paper-dialog' into 'master'
Matthias Clasen [Fri, 12 Jun 2020 14:01:17 +0000 (14:01 +0000)]
Merge branch 'fix-custom-paper-dialog' into 'master'

Fix the custom paper dialog

See merge request GNOME/gtk!2078

5 years agoprintdialog: Replace the papersize combo with a dropdown
Matthias Clasen [Fri, 12 Jun 2020 12:28:59 +0000 (08:28 -0400)]
printdialog: Replace the papersize combo with a dropdown

This one is more complicated, since it involves
separators and a custom item.

5 years agoAdwaita: Allow separators on individual list items
Matthias Clasen [Fri, 12 Jun 2020 13:20:46 +0000 (09:20 -0400)]
Adwaita: Allow separators on individual list items

Allow setting a .separator style class on list items
to put a separator before the item.

5 years agoprintdialog: Replace some combo boxes with drop downs
Matthias Clasen [Thu, 11 Jun 2020 22:10:42 +0000 (18:10 -0400)]
printdialog: Replace some combo boxes with drop downs

These are just the simple cases.

5 years agoprinteroptionwidget: Port to GtkDropDown
Matthias Clasen [Thu, 11 Jun 2020 23:59:35 +0000 (19:59 -0400)]
printeroptionwidget: Port to GtkDropDown

Use GtkDropDown instead of GtkComboBox in the print dialog.

5 years agotestdropdown: Add some more tests
Matthias Clasen [Fri, 12 Jun 2020 03:25:58 +0000 (23:25 -0400)]
testdropdown: Add some more tests

Add a homegrown combobox entry replacement that
combines a dropdown with a plain entry.

5 years agodropdown: Make the stack nonhomogeneous
Matthias Clasen [Fri, 12 Jun 2020 03:24:36 +0000 (23:24 -0400)]
dropdown: Make the stack nonhomogeneous

Without this, the (None) in the empty page forces
the button to have a large minimum width, even when
we don't put a widget in it.

5 years agoFix the custom paper dialog
Matthias Clasen [Fri, 12 Jun 2020 12:46:18 +0000 (08:46 -0400)]
Fix the custom paper dialog

This broke during the container removal.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 12 Jun 2020 06:40:07 +0000 (06:40 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 11 Jun 2020 23:44:48 +0000 (23:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2077

5 years agodropdown: Make the popup as wide as the button
Matthias Clasen [Thu, 11 Jun 2020 22:29:58 +0000 (18:29 -0400)]
dropdown: Make the popup as wide as the button

Having narrow popups on a wide button looks awkward.
Do the same as the combo box, and ensure the popup
is at least as wide as the button.

5 years agoiconbrowser: Drop app menu leftovers
Matthias Clasen [Sun, 7 Jun 2020 13:08:10 +0000 (09:08 -0400)]
iconbrowser: Drop app menu leftovers

We don't use menus.ui anymore, so don't put it in a resource.

5 years agoAdwaita: bring dropdown arrows back
Matthias Clasen [Thu, 11 Jun 2020 22:09:12 +0000 (18:09 -0400)]
Adwaita: bring dropdown arrows back

These got lost when the css name changed from combobox
to dropdown.

5 years agodocs: Cosmetics
Matthias Clasen [Thu, 11 Jun 2020 21:25:57 +0000 (17:25 -0400)]
docs: Cosmetics

Remove a few instances of GTK+ from the docs, and
remove references to ancient versions.

5 years agoMerge branch 'recent-model' into 'master'
Matthias Clasen [Thu, 11 Jun 2020 20:58:52 +0000 (20:58 +0000)]
Merge branch 'recent-model' into 'master'

Add a list model for recent files

See merge request GNOME/gtk!2073

5 years agotestcolumnview: Add recent file support
Matthias Clasen [Wed, 10 Jun 2020 23:55:58 +0000 (19:55 -0400)]
testcolumnview: Add recent file support

Use testcolumnview --recent to see recent files.

5 years agoAdd GtkBookmarkList
Matthias Clasen [Wed, 10 Jun 2020 21:03:13 +0000 (17:03 -0400)]
Add GtkBookmarkList

This is a listmodel similar to GtkDirectoryList,
for tracking recent files.

5 years agoMerge branch 'property-selection-getters' into 'master'
Matthias Clasen [Thu, 11 Jun 2020 13:08:47 +0000 (13:08 +0000)]
Merge branch 'property-selection-getters' into 'master'

propertyselection: Add getters

See merge request GNOME/gtk!2075

5 years agopropertyselection: Add getters
Matthias Clasen [Thu, 11 Jun 2020 11:15:27 +0000 (07:15 -0400)]
propertyselection: Add getters

These were missing.

5 years agoMerge branch 'michaelweghorn/master_issue1820_gtkfilechoosernative_get_filter' into...
Matthias Clasen [Wed, 10 Jun 2020 14:47:36 +0000 (14:47 +0000)]
Merge branch 'michaelweghorn/master_issue1820_gtkfilechoosernative_get_filter' into 'master'

filechoosernative: Make get_filter work for (non-portal) native chooser (master, issue #1820)

Closes #1820

See merge request GNOME/gtk!2069

5 years agoMerge branch 'wip/carlosg/zoom-no-touchpad-warnings' into 'master'
Emmanuele Bassi [Wed, 10 Jun 2020 14:35:10 +0000 (14:35 +0000)]
Merge branch 'wip/carlosg/zoom-no-touchpad-warnings' into 'master'

gtkgesturezoom: Do not check touchpad phase on generic events

Closes #2825

See merge request GNOME/gtk!2071

5 years agoMerge branch 'scroll-compression' into 'master'
Matthias Clasen [Wed, 10 Jun 2020 14:35:01 +0000 (14:35 +0000)]
Merge branch 'scroll-compression' into 'master'

gdk: Compress scroll events

Closes #2800

See merge request GNOME/gtk!2066

5 years agoMerge branch 'device-cleanup' into 'master'
Matthias Clasen [Wed, 10 Jun 2020 13:06:13 +0000 (13:06 +0000)]
Merge branch 'device-cleanup' into 'master'

Device cleanup

See merge request GNOME/gtk!2068

5 years agoUpdate Japanese translation
sicklylife [Wed, 10 Jun 2020 12:34:42 +0000 (12:34 +0000)]
Update Japanese translation

5 years agogtkgesturezoom: Do not check touchpad phase on generic events
Carlos Garnacho [Wed, 10 Jun 2020 12:27:14 +0000 (14:27 +0200)]
gtkgesturezoom: Do not check touchpad phase on generic events

This gesture handles both individual touch events and touchpad gesture
events, and was checking the touchpad phase in generic code paths. This
is dubious since event methods error out on the wrong GdkEventTypes.

Check the touchpad gesture phase within the branch handling touchpad
events, and make it clear which is the gesture phase of all that we are
ignoring.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2825
5 years agoUpdate Japanese translation
sicklylife [Wed, 10 Jun 2020 12:18:55 +0000 (12:18 +0000)]
Update Japanese translation

5 years agogdk: Drop axis labels
Matthias Clasen [Tue, 9 Jun 2020 19:26:04 +0000 (15:26 -0400)]
gdk: Drop axis labels

This was only ever implemented on X11, and the labels
here were atom names, so unlikely to be useful for
anything interesting.

5 years agoMerge branch 'win32-use-g-stat' into 'master'
Alexander Larsson [Wed, 10 Jun 2020 07:19:22 +0000 (07:19 +0000)]
Merge branch 'win32-use-g-stat' into 'master'

gtkiconcache: Use g_stat instead of fstat

See merge request GNOME/gtk!2019

5 years agofilechoosernative: Make get_filter work for (non-portal) native chooser
Michael Weghorn [Sat, 23 May 2020 11:38:54 +0000 (13:38 +0200)]
filechoosernative: Make get_filter work for (non-portal) native chooser

'gtk_file_chooser_get_filter' did not work for GtkFileChooserNative,
since the previous way did not properly handle the delegate dialog,
s.a. commit a136cbae8f8848d49976512f7f0ec73137428ea0
("filechoosernative: forward current_filter to delegate dialog",
2018-11-29) for details, wich basiscally fixed the same thing for
the 'gtk_file_chooser_set_filter' case.

This fixes #1820 for the fallback dialog. A solution for the portal
one (which also requires changes to xdg-desktop-portal and
xdg-desktop-portal-gtk as well) will be suggested in a subsequent step.

Bug: #1820

5 years agogdk: Drop gdk_device_set_axis_use
Matthias Clasen [Tue, 9 Jun 2020 19:15:51 +0000 (15:15 -0400)]
gdk: Drop gdk_device_set_axis_use

If you need some axes changed, you can just flip
the values when you receive them.

5 years agogdk: Drop gdk_device_get/set_keys
Matthias Clasen [Tue, 9 Jun 2020 19:06:38 +0000 (15:06 -0400)]
gdk: Drop gdk_device_get/set_keys

This functionality was only ever half-implemented
on X11, and is not useful enough to keep around.

5 years agox11: Stop setting device keys
Matthias Clasen [Tue, 9 Jun 2020 19:05:55 +0000 (15:05 -0400)]
x11: Stop setting device keys

This is very vestigial functionality, and basically
unused.

5 years agoAddress review comments
Matthias Clasen [Tue, 9 Jun 2020 18:13:22 +0000 (14:13 -0400)]
Address review comments

We were casting scroll events to motion events
rather carelessly. Don't do that.

5 years agogdk: Add documentation
Matthias Clasen [Tue, 9 Jun 2020 17:59:26 +0000 (13:59 -0400)]
gdk: Add documentation

Add some useful information about event history.

5 years agogdk: Rename gdk_motion_event_get_history
Matthias Clasen [Tue, 9 Jun 2020 17:40:26 +0000 (13:40 -0400)]
gdk: Rename gdk_motion_event_get_history

Scroll events can have history too, so make a
getter that works for both. This drops the
gdk_scroll_event_get_history getter that was
added a few commits earlier, since we now
store scroll history in the same way as
motion history.

Update the docs, and all callers.

5 years agogdk: Shrink GdkTimeCoord
Matthias Clasen [Tue, 9 Jun 2020 17:38:48 +0000 (13:38 -0400)]
gdk: Shrink GdkTimeCoord

There is really no need to store 128 doubles as axes,
ever. We can do just fine with 10. At the same time,
add a GdkAxisFlags member, so we can interpret the
values without having to go chasing the right device
for this information.

5 years agogdk: Add scroll delta x/y as device axes
Matthias Clasen [Tue, 9 Jun 2020 17:41:07 +0000 (13:41 -0400)]
gdk: Add scroll delta x/y as device axes

They really are axes, and having them present
in these enums lets use store delta values in
GdkTimeCoord for keeping history.

5 years agoKeep scroll history
Matthias Clasen [Tue, 9 Jun 2020 00:29:38 +0000 (20:29 -0400)]
Keep scroll history

Similar to how we keep motion history for compressed
events, keep scroll history for compressed scroll
events.

5 years agogdk: Compress scroll events
Matthias Clasen [Mon, 8 Jun 2020 22:07:40 +0000 (18:07 -0400)]
gdk: Compress scroll events

Only return one accumulated scroll event per frame.
Compress them by adding up the deltas.

Still missing: a way to capture history, like
we do for motion events.

Fixes: #2800
5 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 9 Jun 2020 15:19:50 +0000 (17:19 +0200)]
Updated Spanish translation

5 years agoMerge branch 'drop-device-history' into 'master'
Matthias Clasen [Mon, 8 Jun 2020 23:56:30 +0000 (23:56 +0000)]
Merge branch 'drop-device-history' into 'master'

Drop device history

See merge request GNOME/gtk!2065

5 years agogdk: Drop gdk_device_get_history
Matthias Clasen [Mon, 8 Jun 2020 22:22:52 +0000 (18:22 -0400)]
gdk: Drop gdk_device_get_history

This function is not implemented anywhere.

5 years agowin32: Drop pointless vfuncs
Matthias Clasen [Mon, 8 Jun 2020 22:21:12 +0000 (18:21 -0400)]
win32: Drop pointless vfuncs

These are not useful.

5 years agowayland: Drop a pointless vfunc
Matthias Clasen [Mon, 8 Jun 2020 22:20:20 +0000 (18:20 -0400)]
wayland: Drop a pointless vfunc

A vfunc that just returns FALSE is not useful.

5 years agobroadway: Drop a pointless vfunc
Matthias Clasen [Mon, 8 Jun 2020 22:19:57 +0000 (18:19 -0400)]
broadway: Drop a pointless vfunc

A vfunc that just returns FALSE is not useful.

5 years agoUpdate Catalan translation
Jordi Mas [Mon, 8 Jun 2020 20:50:03 +0000 (22:50 +0200)]
Update Catalan translation

5 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Mon, 8 Jun 2020 18:43:31 +0000 (18:43 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Wip/otte/for master

See merge request GNOME/gtk!2064

5 years agoselectionmodel: Add unselect_rest argument to select_callback
Benjamin Otte [Mon, 8 Jun 2020 16:47:44 +0000 (18:47 +0200)]
selectionmodel: Add unselect_rest argument to select_callback

This is not just about consistency with other functions.

It is about avoiding reentrancy problems.

GtkListBase first doing an unselect_all() will then force the
SelectionModel to consider a state where all items are unselected
(and potentially deciding to autoselect one) and then cause a
"selection-changed" emission that unselects all items and potentially
updates all the list item widgets in the GtkListBase to the unselected
state.

After this, GtkListBase selects new items, but to the SelectionModel and
the list item widgets this looks like an enitrely new operation and
there is no way to associate it with the previous state, so the
SelectionModel cannot undo any previous actions it took when
unselecting.
And all listitem widgets will now think they were just selected and
start running animations about selecting.

5 years agoselectionmodel: Rename "exclusive" to "unselect_rest"
Benjamin Otte [Mon, 8 Jun 2020 16:26:48 +0000 (18:26 +0200)]
selectionmodel: Rename "exclusive" to "unselect_rest"

The name is better at explaining what this boolean is meant to do.

5 years agolistitemmanager: Update selections properly
Benjamin Otte [Mon, 8 Jun 2020 16:06:01 +0000 (18:06 +0200)]
listitemmanager: Update selections properly

Replace a previous fix with a more correct one: Update the
selected state from the model instead of reusing the old state, the
model might have updated the selected state.

5 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 8 Jun 2020 15:21:58 +0000 (17:21 +0200)]
Updated Spanish translation

5 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 8 Jun 2020 14:11:28 +0000 (16:11 +0200)]
Updated Spanish translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 8 Jun 2020 11:15:28 +0000 (11:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

dropdown: Use our own CSS name

See merge request GNOME/gtk!2061

5 years agoMerge branch 'tintou/places-sidebar-cloudproviders' into 'master'
Emmanuele Bassi [Mon, 8 Jun 2020 09:35:23 +0000 (09:35 +0000)]
Merge branch 'tintou/places-sidebar-cloudproviders' into 'master'

placessidebar: Fix build with libcloudproviders

See merge request GNOME/gtk!2062

5 years agoplacessidebar: Fix build with libcloudproviders
Corentin Noël [Mon, 8 Jun 2020 08:40:46 +0000 (10:40 +0200)]
placessidebar: Fix build with libcloudproviders

Make it build with cloudproviders=true as the GtkPopover API for menus is now in GtkPopoverMenu.

Fix some leaks while looking at the code.

5 years agoMerge branch 'fix-cell-editing' into 'master'
Matthias Clasen [Sun, 7 Jun 2020 14:54:37 +0000 (14:54 +0000)]
Merge branch 'fix-cell-editing' into 'master'

Fix cell editing

Closes #2831

See merge request GNOME/gtk!2060

5 years agodropdown: Use our own CSS name
Matthias Clasen [Sun, 7 Jun 2020 13:01:20 +0000 (09:01 -0400)]
dropdown: Use our own CSS name

Use the name dropdown for the css node, and document it.

5 years agoDrop gtknativeprivate.h
Matthias Clasen [Sun, 7 Jun 2020 12:48:14 +0000 (08:48 -0400)]
Drop gtknativeprivate.h

No need to ship empty headers.

5 years agoMerge branch 'gtk-demo-tweaks' into 'master'
Matthias Clasen [Sun, 7 Jun 2020 12:51:34 +0000 (12:51 +0000)]
Merge branch 'gtk-demo-tweaks' into 'master'

Gtk demo tweaks

See merge request GNOME/gtk!2059

5 years agoFix cell editing
Matthias Clasen [Sun, 7 Jun 2020 12:43:36 +0000 (08:43 -0400)]
Fix cell editing

When translating coordinates from an event, we need to
take the surface transform into account. This makes
double-clicking on editable cells in treeviews work
again.

Fixes: #2831
5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sun, 7 Jun 2020 08:51:44 +0000 (08:51 +0000)]
Update Ukrainian translation

5 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 7 Jun 2020 07:27:34 +0000 (09:27 +0200)]
Update POTFILES.in

5 years agogtk-demo: Expand the sidebar by default
Matthias Clasen [Sun, 7 Jun 2020 02:07:38 +0000 (22:07 -0400)]
gtk-demo: Expand the sidebar by default

Seems better to show what we have. Plus, clicking
those arrows is a little fiddly.

5 years agogtk-demo: Improve display of image sources
Matthias Clasen [Sun, 7 Jun 2020 02:06:58 +0000 (22:06 -0400)]
gtk-demo: Improve display of image sources

Make the images expand to fill the space.

5 years agogtk-demo: Cosmetics
Matthias Clasen [Sun, 7 Jun 2020 02:05:52 +0000 (22:05 -0400)]
gtk-demo: Cosmetics

Tweak the formatting of the descriptions of
various demos.

5 years agogtk-demo: Cosmetics
Matthias Clasen [Sun, 7 Jun 2020 01:42:07 +0000 (21:42 -0400)]
gtk-demo: Cosmetics

Make the titles of some demos match between sidebar
and window.

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Sun, 7 Jun 2020 01:42:21 +0000 (01:42 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Annotate the GtkSelectionModel callbacks

See merge request GNOME/gtk!2057

5 years agogtk-demo: Add overline to the markup demo
Matthias Clasen [Sun, 7 Jun 2020 01:38:31 +0000 (21:38 -0400)]
gtk-demo: Add overline to the markup demo

This is a new-ish Pango feature.

5 years agoDrop pango version checks
Matthias Clasen [Sun, 7 Jun 2020 01:32:55 +0000 (21:32 -0400)]
Drop pango version checks

We are requiring pango 1.45.0 now, so no need to
Keep these ifdefs in the code any longer.

5 years agogtk-demo: Fix a leak
Matthias Clasen [Sun, 7 Jun 2020 00:09:42 +0000 (20:09 -0400)]
gtk-demo: Fix a leak

The themes demo was leaking its builder, and
therefore couldn't be closed.

5 years agogtk-demo: Cosmetic changes to the dropdown demo
Matthias Clasen [Sun, 7 Jun 2020 00:08:50 +0000 (20:08 -0400)]
gtk-demo: Cosmetic changes to the dropdown demo

Match the window title and the sidebar.

5 years agogtk-demo: Cosmetic improvements to clocks demo
Matthias Clasen [Sat, 6 Jun 2020 23:43:21 +0000 (19:43 -0400)]
gtk-demo: Cosmetic improvements to clocks demo

Reformat the code comments, and add a 10th clock.

5 years agoAnnotate the GtkSelectionModel callbacks
Emmanuele Bassi [Sat, 6 Jun 2020 23:39:33 +0000 (00:39 +0100)]
Annotate the GtkSelectionModel callbacks

We need a scope for the select and unselect callback arguments.

5 years agoUpdate Catalan translation
Jordi Mas [Sat, 6 Jun 2020 21:13:17 +0000 (23:13 +0200)]
Update Catalan translation

5 years ago3.98.5
Matthias Clasen [Sat, 6 Jun 2020 17:56:00 +0000 (13:56 -0400)]
3.98.5

5 years agoDisable a failing test
Matthias Clasen [Sat, 6 Jun 2020 19:31:29 +0000 (15:31 -0400)]
Disable a failing test

For some reason, empty-linear-gradient is failing here,
with the broadway and opengl renderers, and I don't
know why. Disable it for now.

5 years agoSkip broken a11y tests
Matthias Clasen [Sat, 6 Jun 2020 18:18:18 +0000 (14:18 -0400)]
Skip broken a11y tests

5 years agodocs: Regroup the tree support parts
Matthias Clasen [Sat, 6 Jun 2020 17:29:55 +0000 (13:29 -0400)]
docs: Regroup the tree support parts

Give the chapter a title, and put some things in sections.

5 years agodocs: Put selection models into a section
Matthias Clasen [Sat, 6 Jun 2020 17:19:07 +0000 (13:19 -0400)]
docs: Put selection models into a section

This makes the documentation structure a bit clearer.

5 years agodocs: Fix up the GtkNativeDialog section
Matthias Clasen [Sat, 6 Jun 2020 16:59:58 +0000 (12:59 -0400)]
docs: Fix up the GtkNativeDialog section

Without GtkNativeDialog in the section list,
links are not generated from the object hierarchy.

5 years agoMerge branch 'misc-multiselection' into 'master'
Matthias Clasen [Sat, 6 Jun 2020 17:54:42 +0000 (17:54 +0000)]
Merge branch 'misc-multiselection' into 'master'

Misc multiselection

See merge request GNOME/gtk!2055

5 years agoMerge branch 'list-arrows' into 'master'
Matthias Clasen [Sat, 6 Jun 2020 17:47:05 +0000 (17:47 +0000)]
Merge branch 'list-arrows' into 'master'

listbase: Make up/down arrows work

See merge request GNOME/gtk!2056

5 years agoMerge branch 'property-selection' into 'master'
Matthias Clasen [Sat, 6 Jun 2020 17:35:05 +0000 (17:35 +0000)]
Merge branch 'property-selection' into 'master'

Property selection

Closes #2826

See merge request GNOME/gtk!2054

5 years agolistbase: Make up/down arrows work
Matthias Clasen [Sat, 6 Jun 2020 16:33:12 +0000 (12:33 -0400)]
listbase: Make up/down arrows work

We were missing a binding for up/down without modifiers.

5 years agosingleselection: Clarify docs
Matthias Clasen [Sat, 6 Jun 2020 15:53:33 +0000 (11:53 -0400)]
singleselection: Clarify docs

Mention persistence and sorting.

5 years agogtk-demo: Use a property selection in the colors demo
Matthias Clasen [Sat, 6 Jun 2020 13:49:25 +0000 (09:49 -0400)]
gtk-demo: Use a property selection in the colors demo

This makes the property persist across sort changes.

5 years agoAdd GtkPropertySelection
Matthias Clasen [Sat, 6 Jun 2020 13:40:04 +0000 (09:40 -0400)]
Add GtkPropertySelection

This is a selection model that stores the selection
state in a boolean property of the items, and thus
persists across reordering and similar changes.

Fixes: #2826
5 years agoMerge branch 'listitemmanager-selection' into 'master'
Matthias Clasen [Sat, 6 Jun 2020 15:23:40 +0000 (15:23 +0000)]
Merge branch 'listitemmanager-selection' into 'master'

listitemmanager: Handle selection-changes properly

Closes #2827

See merge request GNOME/gtk!2053

5 years agomultiselection: Rewrite the select_callback implementation
Matthias Clasen [Sat, 6 Jun 2020 15:21:29 +0000 (11:21 -0400)]
multiselection: Rewrite the select_callback implementation

Use a for loop to make this more obvious, and add some
assertions that the callback is behaving properly.

5 years agoAdd tests for select_callback
Matthias Clasen [Sat, 6 Jun 2020 15:20:47 +0000 (11:20 -0400)]
Add tests for select_callback